@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@400;500;600;700&display=swap');

:root {
    --hover-width: 75%;
    --other-width: 25%;
    --speed: 2s;
}

html,
body {
    padding: 0;
    margin: 0;
    font-family: 'DynaPuff', cursive;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

h1 {
    font-size: 3.5rem;
    color: #fff;
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-transform: uppercase;
}

.button {
    display: block;
    position: absolute;
    left: 50%;
    top: 40%;
    padding: 1rem 4rem;
    color: #fff;
    border: 0.2rem solid #fff;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transform: translateX(-50%);
}

.split.left .button:hover {
    background-color: #a10b0b4d;
    border-color: #a10b0b4d;
    font-size: 1.5rem;
    transition: 0.3s ease-in;
}

.split.right .button:hover {
    background-color: #5c5c5c4d;
    border-color: #5c5c5c4d;
    font-size: 1.5rem;
    transition: 0.3s ease-in;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #333;
}
.split {
    position: absolute;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.split.left {
    left: 0;
    background: url(./Bienvenida/adm.jpg) center center no-repeat;
    background-size: cover;
    transition: var(--speed) all ease-in-out;
}
.split.left::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: #df2727b3;
    transition: var(--speed) all ease-in-out;
}
.split.right {
    right: 0;
    background: url(./Bienvenida/Usuario_B.jpg) center center no-repeat;
    background-size: cover;
    transition: var(--speed) all ease-in-out;
}
.split.right::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: #2b2b2bcc;
    transition: var(--speed) all ease-in-out;
}
.hover-left .left {
    width: var(--hover-width);
}
.hover-left .right {
    width: var(--other-width);
}
.hover-left .right::before {
    z-index: 2;
}

.hover-right .right {
    width: var(--hover-width);
}
.hover-right .left {
    width: var(--other-width);
}
.hover.right .left::before {
    z-index: 2;
}

@media (max-width: 800px) {
    h1 {
        font-size: 2rem;
    }
}
@media (max-height: 700px) {
    .button {
        top: 70%;
    }
}